<include file="Public:header" />
    <h3 class="title"><em>编辑部门</em><span><a href="{:U('index',session('pageInfo'))}">返回列表&nbsp;&rsaquo;&nbsp;</a></span></h3>
	<div class="formbox">
    	<form name="mform" method="post" action="{:U('edit')}">
		<table width="100%" border="0" cellspacing="1" cellpadding="0">
			<tr>
				<th>角色名称：</th>
				<td><input name="name" type="text" class="ipt" id="name" size="50" maxlength="50" value="{$info['name']}" /></td>
			</tr>
            <tr>
				<th>权限集：</th>
				<td class="access-list">
                	<volist name="accessTree" id="at">
                		<dl>
                        	<dt>
                            	{$at['name']}：
                            </dt>
                            <dd>
                            	<volist name="at['tree']" id="sat">
                                <label><input type="checkbox" name="access[]" value="{$sat['id']}" <if condition="in_array($sat['id'], $info['access_list'])">checked</if> />  {$sat['name']}</label>
                                </volist>
                            </dd>
                        </dl>
                    </volist>
                </td>
			</tr>
			<tr>
				<th>状态：</th>
				<td>
                	<label><input name="status" type="radio" value="1" <eq name="info['status']" value="1">checked="checked"</eq> /> 正常</label>
                	<label><input name="status" type="radio" value="2" <eq name="info['status']" value="2">checked="checked"</eq> /> 禁用</label>
                </td>
			</tr>
			<tr class="btnbox">
            	<th>&nbsp;</th>
				<td>
					<input type="hidden" name="id" value="{$info['id']}" />
					<input type="submit" class="btn" value="保 存">&nbsp;
					<input type="reset" class="btn" value="取 消" onClick="window.location.href='{:U('index',session('pageInfo'))}';">
				</td>
			</tr>
		</table>
        </form>
	</div>
<include file="Public:footer" />